<script type="text/html" id="orderToolBar">
    <div class="builder-right-buttons layui-btn-container">
        {foreach name="right_buttons" key="key" item="button"}
            {if $button.title == '发货'}
                {{#  if(d.status == 2 || d.status == 3){ }}
                <button type="button" class="layui-btn layui-btn-sm <?php echo $button['class'] ? 'layui-btn-' . $button['class'] :''; ?>"
                        lay-options="{$button.name}" lay-event="{$button.event}">{{d.status == 2 ?'发货':'发货详情'}}</button>
                {{#  } }}
            {elseif $button.title == '修改地址'}
                {{#  if(d.status == 2){ }}
                <button type="button" class="layui-btn layui-btn-sm <?php echo $button['class'] ? 'layui-btn-' . $button['class'] :''; ?>"
                        lay-options="{$button.name}" lay-event="{$button.event}"><?php echo $button['title'];?></button>
                {{#  } }}
            {else}
                <button type="button" class="layui-btn layui-btn-sm <?php echo $button['class'] ? 'layui-btn-' . $button['class'] :''; ?>"
                        lay-options="{$button.name}" lay-event="{$button.event}"><?php echo $button['title'];?></button>
            {/if}
        {/foreach}
    </div>
</script>

<script id="addressTpl" type="text/html">
    <div style="display: -webkit-box;-webkit-box-orient: vertical;-webkit-line-clamp: 1;overflow: hidden;text-overflow: ellipsis;">
        {{d.p?d.p.title:''}}{{d.c?d.c.title:''}}{{d.d?d.d.title:''}}{{d.address_details}}
    </div>
</script>

<script id="productTpl" type="text/html">
    <div class="vxe-cell">
        <div order-product="" class="ivu-tooltip">
            <div class="ivu-tooltip-rel">
                {{#  layui.each(d.productsField, function(index, item){ }}
                <div order-product="" class="tabBox justify-between">
                    <div order-product="" class="tabBox_img">
                        <img order-product="" src="{{item.icon}}"
                             class="lay-images"></div>
                    <span order-product="" class="tabBox_tit line1  flex-1">{{item.title}} </span>
                    <span style="color: #f85d75">{{item.spec?'规格:' + item.spec:''}}</span>
                    <span order-product="" style="margin-left: 10px;color: #2D8CF0">数量:{{item.num}}</span>
                </div>
                {{#  }); }}
            </div>
        </div>
    </div>
</script>
